from django.urls import path
from .views import *

app_name = 'adminuser'

urlpatterns = [
    # 管理员认证
    path('login/', admin_login, name='admin_login'),
    path('logout/', admin_logout, name='admin_logout'),
    
    # 管理仪表盘
    path('dashboard/', admin_dashboard, name='dashboard'),
    
    # 用户管理
    path('users/', user_management, name='user_management'),
    path('users/<int:user_id>/', user_detail, name='user_detail'),
    path('users/<int:user_id>/toggle-ban/', toggle_ban_user, name='toggle_ban_user'),
    
    # 故事管理
    path('stories/', story_management, name='story_management'),
    path('stories/<int:story_id>/delete/', delete_story, name='delete_story'),
    
    # 举报管理
    path('reports/', report_management, name='report_management'),
    path('reports/<int:report_id>/handle/', handle_report, name='handle_report'),
    path('reports/batch-handle/', batch_handle_reports, name='batch_handle_reports'),
    
    # 评论管理
    path('comments/', comment_management, name='comment_management'),
    path('comments/<int:comment_id>/handle/', handle_comment, name='handle_comment'),
    path('comments/batch-handle/', batch_handle_comments, name='batch_handle_comments'),
    
    # 系统设置
    path('settings/', system_settings, name='system_settings'),
    
    # 管理日志
    path('logs/', admin_logs, name='admin_logs'),
    
    # 数据分析
    path('analysis/', data_analysis, name='data_analysis'),
    path('analysis/users/', user_analysis, name='user_analysis'),
    path('analysis/content/', content_analysis, name='content_analysis'),
    path('analysis/interaction/', interaction_analysis, name='interaction_analysis'),
]